/* 设备状态卡片样式 */

.status-info {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.status-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status.running {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.idle {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status.maintenance {
    background-color: #e3f2fd;
    color: #1976d2;
}

.health-chart {
    height: 150px;
    width: 100%;
}


/* 监控容器样式 */

.monitor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}


/* 设备列表样式 */

.device-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #2c3e50;
}

.device-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.device-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.device-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.device-item.active {
    border-color: #1e3799;
    background: #e3f2fd;
}

.device-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.device-item-title {
    font-weight: bold;
    color: #2c3e50;
}

.device-item-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.device-item-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}


/* 设备详情样式 */

.device-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: none;
}

.device-detail.active {
    display: block;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-detail {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.5rem;
    line-height: 1;
}

.close-detail:hover {
    color: #2c3e50;
}

.device-info {
    margin-bottom: 2rem;
}

.info-group {
    display: flex;
    margin-bottom: 1rem;
}

.info-group label {
    width: 100px;
    color: #7f8c8d;
}

.info-group span {
    color: #2c3e50;
    font-weight: 500;
}

.device-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.chart-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.chart-container h4 {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.chart {
    height: 200px;
}


/* 响应式设计 */

@media (max-width: 1200px) {
    .monitor-container {
        grid-template-columns: 1fr;
    }
    .device-detail {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .list-header {
        flex-direction: column;
        gap: 1rem;
    }
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    .device-item-info {
        grid-template-columns: 1fr;
    }
}